package com.game.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author: tjc
 * @description
 * @Date Created in 21:29 2021-08-12
 */
public class ScoreRecorder {
    private Map<Integer, Integer> killMap = new HashMap<>();

    List<Score> scoreList = new ArrayList<>();

    public void record(Score s) {
        scoreList.add(s);
    }

    public int getTotalScore() {
        int total = 0;
        for (Score s : scoreList) {
            total += s.getValue();
        }
        return total;
    }
}
